<div class="depot-form">
  <% form_for(@user) do |f| %>
  <%= f.error_messages %>
  <fieldset>
    <legend>添加用户</legend>
    <p>
      <%= f.label :name,"用户名：" %>
      <%= f.text_field :name, :size => 40 %>
    </p>
    <p>
      <%= f.label :password, '密码' %>
      <%= f.password_field :password, :size => 40 %>
    </p>
    <p>
      <%= f.label :password_confirmation, "确认密码" %>
      <%= f.password_field :password_confirmation, :size => 40 %>
    </p>
    <p>
      <%= f.submit "添加用户", :class=>"提交" %>
    </p>
  </fieldset>
  <% end %>
</div>
